]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
texture-cache: Use content size for returned images
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 9 Feb 2019 18:16:15 +0000 (19:16 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 10 Feb 2019 19:29:13 +0000 (19:29 +0000)
Since commit deec0bf2550, the texture cache is based on ClutterImage
rather than ClutterTexture. As ClutterImage (like all ClutterContent)
is only concerned with painting, it doesn't influence the size of the
actor it is added to at all, and the returned actor will now stay at
size 0x0 after the image has been loaded.

Set up the actor to follow the content's size instead, to get closer
to the previous behavior.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/402

src/st/st-texture-cache.c

index 1d11ce71c4339e4d72ee0d351238b1297a3d6f23..967ad9e2e10042ae25e0307e21e7eba0749b0e18 100644 (file)
@@ -71,6 +71,7 @@ create_invisible_actor (void)
 {
   return g_object_new (CLUTTER_TYPE_ACTOR,
                        "opacity", 0,
+                       "request-mode", CLUTTER_REQUEST_CONTENT_SIZE,
                        NULL);
 }